package com.luichi.data.serviceImpl;

import com.luichi.data.base.IRequestId;
import com.luichi.data.base.Urls;
import com.luichi.data.net.ApiService;
import com.luichi.domain.bean.User;
import com.luichi.domain.entity.LoginResult;
import com.luichi.domain.service.ILogin;

import rx.Observable;

/**
 * Created by hlr on 2015/11/10.
 */
public class LoginImpl implements ILogin {

    @Override
    public Observable<LoginResult> requestLogin(User user) {
        return ApiService.requestLogin(user.getUserName(), user.getAddress(), Urls.mlogins, IRequestId.REQUEST_LOGIN);
    }

    @Override
    public void saveUser(User user) {

    }
}
